package com.budwk.app.sqfwDoc.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.util.Date;

/**
 * @author ZY.Wang
 * @since 2023/12/5
 */
@Data
@Accessors(chain = true)
@Table("shequ.sqfw_template_field")
@Comment("人口调查表")
@ApiModel(description = "模板字段")
public class SqfwTemplateField {

    @Name
    @Column("id")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    @PrevInsert(uu32 = true)
    private String id;

    @Column("field_name")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String fieldName;    // 原料名称

    @Column("field_code")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String fieldCode;    // 原料编码

    @Column("mark")
    @ColDefine(type = ColType.VARCHAR, width = 1000)
    private String mark;        // 备注

    @Column("dict_related_num")
    @ColDefine(type = ColType.INT, width = 5)
    private Integer dictRelatedNum;

    @Column("vis_dict_related_num")
    @ColDefine(type = ColType.INT, width = 5)
    private Integer visDictRelatedNum;

    @Column("create_by")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String createBy;    // 创建人

    @Column("create_time")
    @ColDefine(type = ColType.DATETIME)
    private Date createTime;    // 创建时间

    @Column("update_by")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String updateBy;    // 更新人

    @Column("update_time")
    @ColDefine(type = ColType.DATETIME)
    private Date updateTime;    // 更新时间
}
